package com.lisp.springframework.web.controller;

import java.util.concurrent.Callable;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class AsyncController {

    @ResponseBody
    @GetMapping("testAsync")
    public Callable<String> testAsync() {
        return new Callable<String>() {
            public String call() throws Exception {
                return "OK";
            }
        };
    }
}
